<%@tag pageEncoding="UTF-8" isELIgnored="false"  %>
<style>
    .snListDiv {
        padding: 10px;
        text-align: left;
        color: #393D49;
    }

    .snListDiv li{
        padding:10px 20px;
        border-bottom:1px  #aaaaaa dashed;
    }
</style>

<script>
    function showSnList(goodsName, goodsSnList) {
        if (goodsSnList==null || goodsSnList==undefined || goodsSnList.length<=0){
            return;
        }
        layui.use(['laytpl'], function () {
            let $ = layui.jquery,
                laytpl = layui.laytpl;

            var getTpl = snList.innerHTML;
            laytpl(getTpl).render(goodsSnList, function(html){
                layer.open({
                    type: 1
                    ,title: "序列号-"+goodsName
                    ,closeBtn: false
                    ,shadeClose:true
                    ,offset: 'auto'
                    ,area: ['300px','300px']
                    ,moveType: 0
                    ,shade: 0
                    ,id: 'snListDialog' //设定一个id，防止重复弹出
                    ,btn: ['确认']
                    ,btnAlign: 'c'
                    ,content: html
                    ,success: function(layero){

                    }
                });
            });
        });
    }
</script>

<script type="text/html" id="snList" >
    <div class="snListDiv">
        <ul>
            {{#  layui.each(d, function(index, item){ }}
            <li>{{item.sn}}</li>
            {{#  }); }}
        </ul>
    </div>
</script>